<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>bn::affine_mat_attributes class | Butano Docs</title>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
  <link rel="stylesheet" href="m-dark+documentation.compiled.css" />
  <link rel="icon" href="favicon-dark.png" type="image/png" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="theme-color" content="#22272e" />
</head>
<body>
<header><nav id="navigation">
  <div class="m-container">
    <div class="m-row">
      <span id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">
        <a href="https://github.com/GValiente/butano">Butano</a> <span class="m-breadcrumb">|</span> <a href="index.html" class="m-thin">Docs</a>
      </span>
      <div class="m-col-t-4 m-hide-m m-text-right m-nopadr">
        <a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
          <path id="m-doc-search-icon-path" d="m6 0c-3.31 0-6 2.69-6 6 0 3.31 2.69 6 6 6 1.49 0 2.85-0.541 3.89-1.44-0.0164 0.338 0.147 0.759 0.5 1.15l3.22 3.79c0.552 0.614 1.45 0.665 2 0.115 0.55-0.55 0.499-1.45-0.115-2l-3.79-3.22c-0.392-0.353-0.812-0.515-1.15-0.5 0.895-1.05 1.44-2.41 1.44-3.89 0-3.31-2.69-6-6-6zm0 1.56a4.44 4.44 0 0 1 4.44 4.44 4.44 4.44 0 0 1-4.44 4.44 4.44 4.44 0 0 1-4.44-4.44 4.44 4.44 0 0 1 4.44-4.44z"/>
        </svg></a>
        <a id="m-navbar-show" href="#navigation" title="Show navigation"></a>
        <a id="m-navbar-hide" href="#" title="Hide navigation"></a>
      </div>
      <div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
        <div class="m-row">
          <ol class="m-col-t-6 m-col-m-none">
            <li><a href="pages.html">Pages</a></li>
            <li><a href="modules.html">Modules</a></li>
          </ol>
          <ol class="m-col-t-6 m-col-m-none" start="3">
            <li><a href="namespaces.html">Namespaces</a></li>
            <li><a href="annotated.html">Classes</a></li>
            <li><a href="files.html">Files</a></li>
            <li class="m-show-m"><a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
              <use href="#m-doc-search-icon-path" />
            </svg></a></li>
          </ol>
        </div>
      </div>
    </div>
  </div>
</nav></header>
<main><article>
  <div class="m-container m-container-inflatable">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <h1>
          <span class="m-breadcrumb"><a href="namespacebn.html">bn</a>::<wbr/></span>affine_mat_attributes <span class="m-thin">class</span>
          <div class="m-doc-include m-code m-inverted m-text-right"><span class="cp">#include</span> <a class="cpf" href="bn__affine__mat__attributes_8h.html">&lt;bn_affine_mat_attributes.h&gt;</a></div>
        </h1>
        <p>Contains the attributes which define an affine transformation matrix.</p>
        <nav class="m-block m-default">
          <h3>Contents</h3>
          <ul>
            <li>
              Reference
              <ul>
                <li><a href="#typeless-methods">Constructors, destructors, conversion operators</a></li>
                <li><a href="#pub-methods">Public functions</a></li>
                <li><a href="#friends">Friends</a></li>
              </ul>
            </li>
          </ul>
        </nav>
        <section id="typeless-methods">
          <h2><a href="#typeless-methods">Constructors, destructors, conversion operators</a></h2>
          <dl class="m-doc">
            <dt id="ac854ba5c240f6595c85e3c6b076253ca">
              <span class="m-doc-wrap-bumper"><a href="#ac854ba5c240f6595c85e3c6b076253ca" class="m-doc-self">affine_mat_attributes</a>(</span><span class="m-doc-wrap">) <span class="m-label m-flat m-info">defaulted</span> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Identity constructor.</dd>
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#acbf50a886849acab4a1e5ece6668fd07" class="m-doc">affine_mat_attributes</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_scale,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_scale,
              bool horizontal_flip,
              bool vertical_flip) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructor.</dd>
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#a36f38b0e7a41c74f6e4027858db84c32" class="m-doc">affine_mat_attributes</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_scale,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_scale,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_shear,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_shear,
              bool horizontal_flip,
              bool vertical_flip) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Constructor.</dd>
          </dl>
        </section>
        <section id="pub-methods">
          <h2><a href="#pub-methods">Public functions</a></h2>
          <dl class="m-doc">
            <dt id="a7789c18603dfb796b2f47f80d42ef647">
              <span class="m-doc-wrap-bumper">auto <a href="#a7789c18603dfb796b2f47f80d42ef647" class="m-doc-self">rotation_angle</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the rotation angle in degrees.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a6c42c6afdaca0e5532d99ed7e810855b" class="m-doc">set_rotation_angle</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the rotation angle in degrees.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a20b0a00e393aeab2ac6baa5094b57c4a" class="m-doc">set_rotation_angle_safe</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the rotation angle in degrees.</dd>
            <dt id="a298c879bc62bb23241af48df354c120f">
              <span class="m-doc-wrap-bumper">auto <a href="#a298c879bc62bb23241af48df354c120f" class="m-doc-self">horizontal_scale</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the horizontal scale.</dd>
            <dt id="a30a00719c807374c81937377fa5db90a">
              <span class="m-doc-wrap-bumper">void <a href="#a30a00719c807374c81937377fa5db90a" class="m-doc-self">set_horizontal_scale</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_scale) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the horizontal scale.</dd>
            <dt id="a96decf4343456416a46a4de4fb0cd24c">
              <span class="m-doc-wrap-bumper">auto <a href="#a96decf4343456416a46a4de4fb0cd24c" class="m-doc-self">vertical_scale</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the vertical scale.</dd>
            <dt id="a6ff4360950d152ccf5863bbafc830c9d">
              <span class="m-doc-wrap-bumper">void <a href="#a6ff4360950d152ccf5863bbafc830c9d" class="m-doc-self">set_vertical_scale</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_scale) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the vertical scale.</dd>
            <dt id="ae82752c40149a34ef42f65150752a8a8">
              <span class="m-doc-wrap-bumper">void <a href="#ae82752c40149a34ef42f65150752a8a8" class="m-doc-self">set_scale</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> scale) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the scale.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a45e14d68928551a6cd736924295fb957" class="m-doc">set_scale</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_scale,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_scale) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the scale.</dd>
            <dt id="a9f4f67ecf2addd6f32ee20b1c3a2cded">
              <span class="m-doc-wrap-bumper">auto <a href="#a9f4f67ecf2addd6f32ee20b1c3a2cded" class="m-doc-self">horizontal_shear</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the horizontal shear.</dd>
            <dt id="a7c488c8236105a3fa72d39940e284111">
              <span class="m-doc-wrap-bumper">void <a href="#a7c488c8236105a3fa72d39940e284111" class="m-doc-self">set_horizontal_shear</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_shear) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the horizontal shear.</dd>
            <dt id="a0bb79ff0d5a2c2443e96ad4c22b36301">
              <span class="m-doc-wrap-bumper">auto <a href="#a0bb79ff0d5a2c2443e96ad4c22b36301" class="m-doc-self">vertical_shear</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the vertical shear.</dd>
            <dt id="a629b3b8d07f3a6e85790df172057adc8">
              <span class="m-doc-wrap-bumper">void <a href="#a629b3b8d07f3a6e85790df172057adc8" class="m-doc-self">set_vertical_shear</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_shear) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the vertical shear.</dd>
            <dt id="a5c145c8558bbd3d833c0627ee7648894">
              <span class="m-doc-wrap-bumper">void <a href="#a5c145c8558bbd3d833c0627ee7648894" class="m-doc-self">set_shear</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> shear) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the shear.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#af389bba3128f34c153bbd94cad1ef4d6" class="m-doc">set_shear</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_shear,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_shear) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets the shear.</dd>
            <dt id="aa3d30c47e104c0bc8a45d3c44a367186">
              <span class="m-doc-wrap-bumper">auto <a href="#aa3d30c47e104c0bc8a45d3c44a367186" class="m-doc-self">horizontal_flip</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Indicates if this matrix is flipped in the horizontal axis or not.</dd>
            <dt id="aa48f8584dcde54729741f67d534cc637">
              <span class="m-doc-wrap-bumper">void <a href="#aa48f8584dcde54729741f67d534cc637" class="m-doc-self">set_horizontal_flip</a>(</span><span class="m-doc-wrap">bool horizontal_flip) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets if this matrix is flipped in the horizontal axis or not.</dd>
            <dt id="ab9651833a5a7bc245186dad3f628b8f9">
              <span class="m-doc-wrap-bumper">auto <a href="#ab9651833a5a7bc245186dad3f628b8f9" class="m-doc-self">vertical_flip</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Indicates if this matrix is flipped in the vertical axis or not.</dd>
            <dt id="ade6bc66724c19d25e4d9baa2a56b85ef">
              <span class="m-doc-wrap-bumper">void <a href="#ade6bc66724c19d25e4d9baa2a56b85ef" class="m-doc-self">set_vertical_flip</a>(</span><span class="m-doc-wrap">bool vertical_flip) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Sets if this matrix is flipped in the vertical axis or not.</dd>
            <dt id="aac92c9f95dc3083b33d4f8b70938eddb">
              <span class="m-doc-wrap-bumper">auto <a href="#aac92c9f95dc3083b33d4f8b70938eddb" class="m-doc-self">identity</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Indicates if this matrix is equal to the identity matrix or not.</dd>
            <dt id="a526a429cfe850c4f82812b2b9b53d49d">
              <span class="m-doc-wrap-bumper">auto <a href="#a526a429cfe850c4f82812b2b9b53d49d" class="m-doc-self">flipped_identity</a>(</span><span class="m-doc-wrap">) const -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Indicates if this matrix is equal to the identity matrix or not, ignoring flip attributes.</dd>
            <dt id="a204c110d1199e5defb777f6f345b39f4">
              <span class="m-doc-wrap-bumper">auto <a href="#a204c110d1199e5defb777f6f345b39f4" class="m-doc-self">pa_register_value</a>(</span><span class="m-doc-wrap">) const -&gt; int <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the value to commit to the first GBA register of an affine transformation matrix with these attributes.</dd>
            <dt id="a4c763dde950ecfe7133ce52c9a7b7150">
              <span class="m-doc-wrap-bumper">auto <a href="#a4c763dde950ecfe7133ce52c9a7b7150" class="m-doc-self">pb_register_value</a>(</span><span class="m-doc-wrap">) const -&gt; int <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the value to commit to the second GBA register of an affine transformation matrix with these attributes.</dd>
            <dt id="aaaf04ff4785add9b7f6604e5381bcfd7">
              <span class="m-doc-wrap-bumper">auto <a href="#aaaf04ff4785add9b7f6604e5381bcfd7" class="m-doc-self">pc_register_value</a>(</span><span class="m-doc-wrap">) const -&gt; int <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the value to commit to the third GBA register of an affine transformation matrix with these attributes.</dd>
            <dt id="ad3376761eebfb3bf179d86ff7434dff2">
              <span class="m-doc-wrap-bumper">auto <a href="#ad3376761eebfb3bf179d86ff7434dff2" class="m-doc-self">pd_register_value</a>(</span><span class="m-doc-wrap">) const -&gt; int <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Returns the value to commit to the fourth GBA register of an affine transformation matrix with these attributes.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a9532472e1c1f7b4c54cf46e210a3de27" class="m-doc">unsafe_set_register_values</a>(</span><span class="m-doc-wrap">int pa,
              int pb,
              int pc,
              int pd) <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>UNSAFE: sets the values to commit to the GBA registers of an affine transformation matrix bypassing the rest of the parameters.</dd>
          </dl>
        </section>
        <section id="friends">
          <h2><a href="#friends">Friends</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#abdb1140eff18d55b43f15db70c10b52f" class="m-doc">operator==</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a>&amp; a,
              const <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a>&amp; b) -&gt; bool <span class="m-label m-flat m-primary">constexpr</span></span>
            </dt>
            <dd>Equal operator.</dd>
          </dl>
        </section>
        <section>
          <h2>Function documentation</h2>
          <section class="m-doc-details" id="acbf50a886849acab4a1e5ece6668fd07"><div>
            <h3>
              <span class="m-doc-wrap-bumper"> bn::<wbr />affine_mat_attributes::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#acbf50a886849acab4a1e5ece6668fd07" class="m-doc-self">affine_mat_attributes</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_scale,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_scale,
              bool horizontal_flip,
              bool vertical_flip) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Constructor.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">rotation_angle</td>
                  <td>Rotation angle in degrees, in the range [0..360].</td>
                </tr>
                <tr>
                  <td>horizontal_scale</td>
                  <td>Horizontal scale.</td>
                </tr>
                <tr>
                  <td>vertical_scale</td>
                  <td>Vertical scale.</td>
                </tr>
                <tr>
                  <td>horizontal_flip</td>
                  <td>Indicates if this matrix is flipped in the horizontal axis or not.</td>
                </tr>
                <tr>
                  <td>vertical_flip</td>
                  <td>Indicates if this matrix is flipped in the vertical axis or not.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a36f38b0e7a41c74f6e4027858db84c32"><div>
            <h3>
              <span class="m-doc-wrap-bumper"> bn::<wbr />affine_mat_attributes::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a36f38b0e7a41c74f6e4027858db84c32" class="m-doc-self">affine_mat_attributes</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_scale,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_scale,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_shear,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_shear,
              bool horizontal_flip,
              bool vertical_flip) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Constructor.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">rotation_angle</td>
                  <td>Rotation angle in degrees, in the range [0..360].</td>
                </tr>
                <tr>
                  <td>horizontal_scale</td>
                  <td>Horizontal scale.</td>
                </tr>
                <tr>
                  <td>vertical_scale</td>
                  <td>Vertical scale.</td>
                </tr>
                <tr>
                  <td>horizontal_shear</td>
                  <td>Horizontal shear.</td>
                </tr>
                <tr>
                  <td>vertical_shear</td>
                  <td>Vertical shear.</td>
                </tr>
                <tr>
                  <td>horizontal_flip</td>
                  <td>Indicates if this matrix is flipped in the horizontal axis or not.</td>
                </tr>
                <tr>
                  <td>vertical_flip</td>
                  <td>Indicates if this matrix is flipped in the vertical axis or not.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a6c42c6afdaca0e5532d99ed7e810855b"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_mat_attributes::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a6c42c6afdaca0e5532d99ed7e810855b" class="m-doc-self">set_rotation_angle</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets the rotation angle in degrees.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">rotation_angle</td>
                  <td>Rotation angle in degrees, in the range [0..360].</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a20b0a00e393aeab2ac6baa5094b57c4a"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_mat_attributes::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a20b0a00e393aeab2ac6baa5094b57c4a" class="m-doc-self">set_rotation_angle_safe</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> rotation_angle) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets the rotation angle in degrees.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">rotation_angle</td>
                  <td>Rotation angle in degrees, in any range.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a45e14d68928551a6cd736924295fb957"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_mat_attributes::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a45e14d68928551a6cd736924295fb957" class="m-doc-self">set_scale</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_scale,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_scale) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets the scale.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">horizontal_scale</td>
                  <td>Horizontal scale.</td>
                </tr>
                <tr>
                  <td>vertical_scale</td>
                  <td>Vertical scale.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="af389bba3128f34c153bbd94cad1ef4d6"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_mat_attributes::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#af389bba3128f34c153bbd94cad1ef4d6" class="m-doc-self">set_shear</a>(</span><span class="m-doc-wrap"><a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> horizontal_shear,
              <a href="namespacebn.html#a0de0484a51e353c5b48db21590f4dfc9" class="m-doc">fixed</a> vertical_shear) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Sets the shear.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">horizontal_shear</td>
                  <td>Horizontal shear.</td>
                </tr>
                <tr>
                  <td>vertical_shear</td>
                  <td>Vertical shear.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a9532472e1c1f7b4c54cf46e210a3de27"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_mat_attributes::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a9532472e1c1f7b4c54cf46e210a3de27" class="m-doc-self">unsafe_set_register_values</a>(</span><span class="m-doc-wrap">int pa,
              int pb,
              int pc,
              int pd) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>UNSAFE: sets the values to commit to the GBA registers of an affine transformation matrix bypassing the rest of the parameters.</p>
<p>The rest of the parameters are not updated, so the affine transformation matrix ends in an inconsistent state.</p>
          </div></section>
          <section class="m-doc-details" id="abdb1140eff18d55b43f15db70c10b52f"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#abdb1140eff18d55b43f15db70c10b52f" class="m-doc-self">operator==</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a>&amp; a,
              const <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a>&amp; b) <span class="m-label m-primary">constexpr</span></span></span>
            </h3>
            <p>Equal operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a> to compare.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a> to compare.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><code>true</code> if the first <a href="classbn_1_1affine__mat__attributes.html" class="m-doc">affine_<wbr />mat_<wbr />attributes</a> is equal to the second one, otherwise <code>false</code>.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
        </section>
      </div>
    </div>
  </div>
</article></main>
<div class="m-doc-search" id="search">
  <a href="#!" onclick="return hideSearch()"></a>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-m-8 m-push-m-2">
        <div class="m-doc-search-header m-text m-small">
          <div><span class="m-label m-default">Tab</span> / <span class="m-label m-default">T</span> to search, <span class="m-label m-default">Esc</span> to close</div>
          <div id="search-symbolcount">&hellip;</div>
        </div>
        <div class="m-doc-search-content">
          <form>
            <input type="search" name="q" id="search-input" placeholder="Loading &hellip;" disabled="disabled" autofocus="autofocus" autocomplete="off" spellcheck="false" />
          </form>
          <noscript class="m-text m-danger m-text-center">Unlike everything else in the docs, the search functionality <em>requires</em> JavaScript.</noscript>
          <div id="search-help" class="m-text m-dim m-text-center">
            <p class="m-noindent">Search for symbols, directories, files, pages or
            modules. You can omit any prefix from the symbol or file path; adding a
            <code>:</code> or <code>/</code> suffix lists all members of given symbol or
            directory.</p>
            <p class="m-noindent">Use <span class="m-label m-dim">&darr;</span>
            / <span class="m-label m-dim">&uarr;</span> to navigate through the list,
            <span class="m-label m-dim">Enter</span> to go.
            <span class="m-label m-dim">Tab</span> autocompletes common prefix, you can
            copy a link to the result using <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">L</span> while <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">M</span> produces a Markdown link.</p>
          </div>
          <div id="search-notfound" class="m-text m-warning m-text-center">Sorry, nothing was found.</div>
          <ul id="search-results"></ul>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="search-v2.js"></script>
<script src="searchdata-v2.js" async="async"></script>
<footer><nav>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <p>Butano Docs. Created with <a href="https://doxygen.org/">Doxygen</a> 1.14.0 and <a href="https://mcss.mosra.cz/">m.css</a>.</p>
      </div>
    </div>
  </div>
</nav></footer>
</body>
</html>
